import request from '@/utils/request'

// 查询大陆信息列表
export function listMainland(query) {
  return request({
    url: '/yuan/mainland/list',
    method: 'get',
    params: query
  })
}

// 查询大陆信息详细
export function getMainland(mainlandId) {
  return request({
    url: '/yuan/mainland/' + mainlandId,
    method: 'get'
  })
}

// 新增大陆信息
export function addMainland(data) {
  return request({
    url: '/yuan/mainland',
    method: 'post',
    data: data
  })
}

// 修改大陆信息
export function updateMainland(data) {
  return request({
    url: '/yuan/mainland',
    method: 'put',
    data: data
  })
}

// 删除大陆信息
export function delMainland(mainlandId) {
  return request({
    url: '/yuan/mainland/' + mainlandId,
    method: 'delete'
  })
}
